import request from '@/utils/request'

// 查询样衣申请进销存列表
export function selectDataAll(query) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock/selectDataAll',
    method: 'get',
    params: query
  })
}
// 查询样衣申请进销存列表
export function selectDataList(query) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock/selectDataList',
    method: 'get',
    params: query
  })
}
// 查询样衣申请进销存列表
export function listOdsSamplePurchaseSaleStock(query) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock/list',
    method: 'get',
    params: query
  })
}
// 查询样衣申请进销存详细
export function getOdsSamplePurchaseSaleStock(id) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock/' + id,
    method: 'get'
  })
}

// 新增样衣申请进销存
export function addOdsSamplePurchaseSaleStock(data) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock',
    method: 'post',
    data: data
  })
}

// 修改样衣申请进销存
export function updateOdsSamplePurchaseSaleStock(data) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock',
    method: 'put',
    data: data
  })
}

// 删除样衣申请进销存
export function delOdsSamplePurchaseSaleStock(id) {
  return request({
    url: '/product/OdsSamplePurchaseSaleStock/' + id,
    method: 'delete'
  })
}
